<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GonzalesToolsAllExpenseType.aspx.cs" Inherits="GonzalesToolsAllExpenseType" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <link href="WebStyle.css" rel="stylesheet" type="text/css" />
</head>

<script language="javascript" type="text/javascript">



    function SelectOnClick (id, name, gl) {        
        document.getElementById("claimtype_id").value = id;
        document.getElementById("claimtype_name").value = name;
        document.getElementById("claimtype_gl").value = gl;
        document.getElementById("hiddenValue").value = "";
        
        parent.ModalWindow.hide();
        
    }
    
    function CloseWindow()
    {
        document.getElementById("hiddenValue").value="close";
        return true;
    }


</script>

<body>
<form id="FormModal" method="post" runat="server">
  <input type="hidden" name="claimtype_id" id="claimtype_id" />
  <input type="hidden" name="claimtype_name" id="claimtype_name" />
  <input type="hidden" name="claimtype_gl" id="claimtype_gl" />
  <input type="hidden" name="hiddenValue" id="hiddenValue" />
  <table width="100%" border="0" cellpadding="2" cellspacing="1">
    <tr>
      <td height="40" class="PageTitle"><asp:Label ID="Label_Title" runat="server" Text='Expense Detail'></asp:Label></td>
    </tr>
    <tr>
      <td><table width="100%" border="0" cellpadding="2" cellspacing="0" class="FormBorder">
        <tr>
          <td class="TableResultCriteriaBar"><table width="100%" border="0" cellspacing="0" cellpadding="1">
            <tr>
              <td>&nbsp;</td>
              <td align="right"><asp:DropDownList CssClass="FormDropDown" ID="DropDownList_SortBy" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList_SortBy_SelectedIndexChanged"></asp:DropDownList>
                      <asp:DropDownList CssClass="FormDropDown" ID="DropDownList_SortOrder" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList_SortOrder_SelectedIndexChanged"></asp:DropDownList></td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td valign="top"><asp:GridView ID="GridViewResult" runat="server"  AutoGenerateColumns="False"
              BorderStyle="None" BorderWidth="0px" OnRowCreated="OnRowCreated" CellPadding="5" CellSpacing="1" CssClass="FormBorder" Width="100%" >
            <columns>
              <asp:BoundField DataField="Code" HeaderText="ID" HtmlEncode="False">
                <itemstyle HorizontalAlign="Center" Width="120px" />
              </asp:BoundField>
                <asp:BoundField DataField="Category" HeaderText="Category" Visible="False">
                    <ItemStyle HorizontalAlign="Center" Width="100px" />
                    <HeaderStyle HorizontalAlign="Center" />
                </asp:BoundField>
              <asp:BoundField DataField="DisplayName" HeaderText="Expense Detail">
                <HeaderStyle HorizontalAlign="Left" />
              </asp:BoundField>
              <asp:BoundField DataField="SelectLink" HtmlEncode="False" >
                <ItemStyle HorizontalAlign="Center" Width="60px" />
                <HeaderStyle Width="60px" />
              </asp:BoundField>
              </columns>
            <RowStyle CssClass="GridViewItem" />
            <headerstyle CssClass="GridViewHeader" />
          </asp:GridView></td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td><asp:Button CssClass="FormButton" ID="Button_Cancel" runat="server" Text="Cancel" /></td>
    </tr>
  </table>
</form>
</body>
</html>
